// Copyright 2021 Guoyoko. All Rights Reserved.


#pragma once

#include "EdGraph/EdGraphNode.h"
#include "Graph/CustomizeFlowGraphTypes.h"
#include "CustomizeFlowGraphNode.generated.h"


UCLASS()
class CUSTOMIZEFLOWEDITOR_API UCustomizeFlowGraphNode : public UEdGraphNode
{
	GENERATED_BODY()

public:

	UPROPERTY()
	struct FCusFlowGraphNodeClassData ClassData;
	
	UPROPERTY()
	UObject* NodeInstance;

public:

	//~ Begin UEdGraphNode Interface
	virtual void AllocateDefaultPins() override;
	virtual void AutowireNewNode(UEdGraphPin* FromPin) override;
	virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
	virtual FText GetTooltipText() const override;
	//virtual void NodeConnectionListChanged() override;
	virtual void PostPlacedNewNode() override;
	//~ End UEdGraphNode Interface

	virtual UEdGraphPin* GetInputPin() const;
	virtual UEdGraphPin* GetOutputPin() const;

private:

	//virtual class USelfGraph* GetSelfGraph();

};

